.class public Lcom/estrongs/android/ui/dialog/j;
.super Ljava/lang/Object;
.source "AssociateAppDialog.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/ui/dialog/j$e;,
        Lcom/estrongs/android/ui/dialog/j$g;,
        Lcom/estrongs/android/ui/dialog/j$f;
    }
.end annotation


# instance fields
.field a:Landroid/os/Handler;

.field b:Lcom/estrongs/android/ui/dialog/j$e;

.field c:Landroid/content/pm/PackageManager;

.field d:Landroid/content/Context;

.field e:Landroid/widget/CheckBox;

.field f:Lcom/estrongs/fs/g;

.field private g:Lcom/estrongs/android/ui/theme/b;

.field private h:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Landroid/graphics/drawable/Drawable;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Landroid/content/Context;Lcom/estrongs/fs/g;)V
    .locals 3

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->h:Ljava/util/HashMap;

    .line 3
    invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;

    move-result-object v0

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->c:Landroid/content/pm/PackageManager;

    .line 4
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->a:Landroid/os/Handler;

    .line 5
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    .line 6
    iput-object p2, p0, Lcom/estrongs/android/ui/dialog/j;->f:Lcom/estrongs/fs/g;

    .line 7
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/j;->a(Landroid/content/Context;)Landroid/view/View;

    move-result-object v0

    .line 8
    new-instance v1, Lcom/estrongs/android/ui/dialog/q$n;

    invoke-direct {v1, p1}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    const v2, 0x7f11015e

    .line 9
    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    .line 10
    invoke-virtual {v1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 11
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    const v2, 0x7f11029e

    invoke-virtual {v0, v2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object v0

    new-instance v2, Lcom/estrongs/android/ui/dialog/j$a;

    invoke-direct {v2, p0, p1, p2}, Lcom/estrongs/android/ui/dialog/j$a;-><init>(Lcom/estrongs/android/ui/dialog/j;Landroid/content/Context;Lcom/estrongs/fs/g;)V

    invoke-virtual {v1, v0, v2}, Lcom/estrongs/android/ui/dialog/q$n;->b(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 12
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const p2, 0x7f110299

    invoke-virtual {p1, p2}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    const/4 p2, 0x0

    invoke-virtual {v1, p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->a(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Lcom/estrongs/android/ui/dialog/q$n;

    .line 13
    invoke-virtual {v1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    .line 14
    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q;->show()V

    .line 15
    invoke-direct {p0}, Lcom/estrongs/android/ui/dialog/j;->b()V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/j;)Ljava/util/HashMap;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/j;->h:Ljava/util/HashMap;

    return-object p0
.end method

.method private b()V
    .locals 2

    .line 1
    new-instance v0, Ljava/lang/Thread;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j$d;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j$d;-><init>(Lcom/estrongs/android/ui/dialog/j;)V

    invoke-direct {v0, v1}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 2
    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    return-void
.end method


# virtual methods
.method protected a()I
    .locals 1

    const v0, 0x7f0c006c

    return v0
.end method

.method protected a(Landroid/content/Context;)Landroid/view/View;
    .locals 5

    .line 2
    new-instance v0, Lcom/estrongs/android/ui/dialog/j$e;

    invoke-direct {v0, p0}, Lcom/estrongs/android/ui/dialog/j$e;-><init>(Lcom/estrongs/android/ui/dialog/j;)V

    iput-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->b:Lcom/estrongs/android/ui/dialog/j$e;

    .line 3
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    invoke-virtual {p0}, Lcom/estrongs/android/ui/dialog/j;->a()I

    move-result v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0906e5

    .line 4
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    .line 5
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v2

    iput-object v2, p0, Lcom/estrongs/android/ui/dialog/j;->g:Lcom/estrongs/android/ui/theme/b;

    .line 6
    new-instance v2, Landroid/graphics/drawable/ColorDrawable;

    iget-object v3, p0, Lcom/estrongs/android/ui/dialog/j;->g:Lcom/estrongs/android/ui/theme/b;

    const v4, 0x7f0601f6

    invoke-virtual {v3, v4}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v3

    invoke-direct {v2, v3}, Landroid/graphics/drawable/ColorDrawable;-><init>(I)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setDivider(Landroid/graphics/drawable/Drawable;)V

    .line 7
    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v2, 0x7f0700a4

    invoke-virtual {p1, v2}, Landroid/content/res/Resources;->getDimensionPixelOffset(I)I

    move-result p1

    invoke-virtual {v1, p1}, Landroid/widget/ListView;->setDividerHeight(I)V

    const/4 p1, 0x0

    .line 8
    invoke-virtual {v1, p1}, Landroid/widget/ListView;->setCacheColorHint(I)V

    const v2, 0x7f09092c

    .line 9
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setEmptyView(Landroid/view/View;)V

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j;->b:Lcom/estrongs/android/ui/dialog/j$e;

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    const v2, 0x7f090201

    .line 11
    invoke-virtual {v0, v2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/CheckBox;

    iput-object v2, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    .line 12
    new-instance v2, Lcom/estrongs/android/ui/dialog/j$b;

    invoke-direct {v2, p0}, Lcom/estrongs/android/ui/dialog/j$b;-><init>(Lcom/estrongs/android/ui/dialog/j;)V

    invoke-virtual {v1, v2}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 13
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/j;->a(I)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    new-instance v1, Lcom/estrongs/android/ui/dialog/j$c;

    invoke-direct {v1, p0}, Lcom/estrongs/android/ui/dialog/j$c;-><init>(Lcom/estrongs/android/ui/dialog/j;)V

    invoke-virtual {p1, v1}, Landroid/widget/CheckBox;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    return-object v0
.end method

.method protected a(I)V
    .locals 4

    .line 15
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    const/4 v1, 0x1

    const/4 v2, 0x0

    if-eqz p1, :cond_0

    const/4 v3, 0x1

    goto :goto_0

    :cond_0
    const/4 v3, 0x0

    :goto_0
    invoke-virtual {v0, v3}, Landroid/widget/CheckBox;->setEnabled(Z)V

    .line 16
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    if-eqz p1, :cond_1

    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->f1()Z

    move-result p1

    if-eqz p1, :cond_1

    goto :goto_1

    :cond_1
    const/4 v1, 0x0

    :goto_1
    invoke-virtual {v0, v1}, Landroid/widget/CheckBox;->setChecked(Z)V

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    invoke-virtual {v0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    invoke-virtual {v1}, Landroid/widget/CheckBox;->isEnabled()Z

    move-result v1

    if-eqz v1, :cond_2

    const v1, 0x7f060290

    goto :goto_2

    :cond_2
    const v1, 0x7f060292

    :goto_2
    invoke-virtual {v0, v1}, Landroid/content/res/Resources;->getColor(I)I

    move-result v0

    invoke-virtual {p1, v0}, Landroid/widget/CheckBox;->setTextColor(I)V

    return-void
.end method
